package com.example.intmysql.Contrller;


import com.example.intmysql.bean.ClassInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloContrller {

    @Autowired
    private ClassInfo classinfo;


    @ResponseBody
    @RequestMapping("/")
    public String index() {
        return "weclome!";
    }

    @ResponseBody
    @RequestMapping("/classinfo")
    public Object  classinfo(){
        return classinfo;
    }
}
